package com.autoagent.ai_live_master.common.event;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

/**
 * 消息事件
 * 用于在模块间传递消息内容
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MessageEvent extends ApplicationEvent {
    
    private final String content;
    private final String type; // "message", "complete", "error"
    private final String roomId;
    
    public MessageEvent(Object source, String content, String type, String roomId) {
        super(source);
        this.content = content;
        this.type = type;
        this.roomId = roomId;
    }
}
